{template "header.html"}
<div class="note note-danger">
    <p><a href="javascript:dr_update_cache();">{dr_lang('更改数据之后需要更新缓存之后才能生效')}</a></p>
</div>
<form action="" class="form-horizontal" method="post" name="myform" id="myform">
	{$form}
	<div class="portlet bordered light ">
	    <div class="portlet-title tabbable-line">
	        <ul class="nav nav-tabs" style="float:left;">
	            <li class="{if $page==0}active{/if}">
	                <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('积分设置')} </a>
	            </li>
	        </ul>
	    </div>
	    <div class="portlet-body">
	        <div class="tab-content">
	            <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
	                <div class="form-body">
						<div class="form-body">
							<div class="form-group">
							    <label class="col-md-2 control-label">名称 {SITE_SCORE} 修改</label>
							    <div class="col-md-9">
							        <div class="mt-radio-inline">
							            
							            <label class="mt-radio mt-checkbox-outline"> {SITE_SCORE} 名称 </label> <a href="javascript:dr_iframe('修改名称', '{dr_url('pay/payconfig/index')}', '','');" class=""><i class="fa fa-plus"></i>  修改{SITE_SCORE}名称</a> 
							        </div>
							    </div>
							    <label class="col-md-2 control-label">名称 {SITE_EXPERIENCE} 修改</label>
							    <div class="col-md-9">
							        <div class="mt-radio-inline">
							            
							            <label class="mt-radio mt-checkbox-outline"> {SITE_EXPERIENCE} 名称 </label> <a href="javascript:dr_iframe('修改名称', '{dr_url('pay/payconfig/index')}', '','');" class=""><i class="fa fa-plus"></i>  修改 {SITE_EXPERIENCE} 名称</a> 
							        </div>
							    </div>
								<label class="col-md-2 control-label">{SITE_SCORE}开关</label>
								<div class="col-md-9">
								    <div class="mt-radio-inline">
								        <label class="mt-radio mt-checkbox-outline"><input type="radio" name="data[quan_jifen_kaiguan]" value="0" {if $data['quan_jifen_kaiguan']==0}checked{/if} /> {SITE_SCORE}{dr_lang('关闭')} <span></span></label>
								        <label class="mt-radio mt-checkbox-outline"><input type="radio" name="data[quan_jifen_kaiguan]" value="1" {if $data['quan_jifen_kaiguan'] ==1}checked{/if} />{SITE_SCORE} {dr_lang('开启')} <span></span></label>
								    
									</div>
								    <!--span class="help-block">{dr_lang('多圈模式可以创建无数个圈子，单圈只能创建一个圈子。并且圈子为系统默认的创建的圈子，不能删除。')}</span-->
								</div>
								<div class="form-group">
							    <label class="col-md-2 control-label">阅读几秒后奖励</label>
							    <div class="col-md-9">
							        <input class="form-control input-xlarge" type="text" name="data[quan_jifen_jiangli_shijian]" value="{$data['quan_jifen_jiangli_shijian']}" >
									<span class="help-block">阅读3秒后最合适</span>
							    </div>
							</div>
							</div>
							

						</div>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
	
	<div class="portlet bordered light ">
	    <div class="portlet-title tabbable-line">
	        <ul class="nav nav-tabs" style="float:left;">
	            <li class="{if $page==0}active{/if}">
	                <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('阅读帖子奖励')} </a>
	            </li>
	        </ul>
	    </div>
	    <div class="portlet-body">
	        <div class="tab-content">
	            <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
	                <div class="form-body">
						<div class="form-body">
							<div class="form-group">
							    <label class="col-md-2 control-label">{dr_lang('奖励')} {SITE_SCORE} </label>
							    <div class="col-md-9">
									<input class="form-control input-xlarge" type="text" name="data[quan_jifen_jiangli]" value="{$data['quan_jifen_jiangli']}" >
									<span class="help-block">填写数字，必须大于0。 0是关闭</span>
							    </div>
							</div>
							
						</div>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
	<div class="portlet bordered light ">
	    <div class="portlet-title tabbable-line">
	        <ul class="nav nav-tabs" style="float:left;">
	            <li class="{if $page==0}active{/if}">
	                <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('阅读帖子奖励')} </a>
	            </li>
	        </ul>
	    </div>
	    <div class="portlet-body">
	        <div class="tab-content">
	            <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
	                <div class="form-body">
						<div class="form-body">
							<div class="form-group">
							    <label class="col-md-2 control-label">{dr_lang('奖励')} {SITE_EXPERIENCE}</label>
							    <div class="col-md-9">
									<input class="form-control input-xlarge" type="text" name="data[quan_jingyan_jiangli]" value="{$data['quan_jingyan_jiangli']}" >
									<span class="help-block">填写数字，必须大于0。 0是关闭</span>
							    </div>
							</div>
							
						</div>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
	
	
	<div>
	    <div class="portlet-body form myfooter">
	        <div class="form-actions text-center">
	            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存')}</button>
	        </div>
	    </div>
	</div>
</form>
<script>
	
	$("#d_kaiguan_geren_dashang").click(function(){

	    $.get("{dr_url('quan/home/dashanguid')}", function(data){
	        //dr_cmf_tips(data.code,data.msg);
	        layer.msg(data.msg,{time:1000});
	    }, 'json');
	});
	$("#d_kaiguan_geren_dashangquan").click(function(){
	
	    $.get("{dr_url('quan/home/dashangquan')}", function(data){
	        //dr_cmf_tips(data.code,data.msg);
	        layer.msg(data.msg,{time:1000});
	    }, 'json');
	});
	$("#d_kaiguan_comment_dashang").click(function(){
	
	    $.get("{dr_url('quan/home/dashangcomment')}", function(data){
	        //dr_cmf_tips(data.code,data.msg);
	        layer.msg(data.msg,{time:1000});
	    }, 'json');
	});
	
	
	/*function d_kaiguan_geren_dashang(){
		$.get('{SITE_URL}index.php?s=api&c=api&m=template&app=quan&name=zan.html&format=json&id='+id,function(res){
			$('#zanlist_list_'+id).append(res.msg);
		}, 'json');	
	}*/
</script>


{template "footer.html"}